home *** CD-ROM | disk | FTP | other *** search
Text File | 2001-03-21 | 1.3 KB | 56 lines | [TEXT/ToyS] |
- tell application "iView PhotoMover"
-
- -- Save current settings
- set klog to get the Log
- set ksound to get the Sound
- set kdetails to get the Details
- set khost to get the Host
-
- --set the Details to true -- Set Details to true for tracking down problems.
- set the Details to false
-
- (* function samples *)
-
- -- Get a file to upload...
- set afile to choose file
- activate
-
- -- 0 = PhotoPoint
- -- 1 = ClubPhoto
- -- 2 = zing
- -- 3 = ImageStation
- -- 4 = NikonNet
- -- 5 = FotoTime
- set the Log to true -- save result to log file...
-
- repeat with hostid from 1 to 1
- set the Host to hostid
- try
-
- -- set timeout to some large number
- with timeout of 3600 seconds -- how long to upload? 1 hour?
-
- -- upload the image to the current site.
- -- open afile
- open afile into album "iview" with description "test image description"
- -- open afile into album "Ottawa" with description "test image description"
-
- -- Note: Currently no site have support for keywords and descriptions yet. this will be added
- -- as site vendors help us add this feature.
- end timeout
-
- on error msg
- display dialog msg & return & "Uploading to host index " & hostid
- end try
- end repeat
-
- -- restore the settings
- set the Log to klog
- set the Sound to ksound
- set the Details to kdetails
- set the Host to khost
-
- -- quit
-
- end tell
-